#!/usr/bin/env python
# -*- coding: utf-8 -*- #
from __future__ import unicode_literals

AUTHOR = u'rainy'
SITENAME = u"rainy"
SITEURL = 'http://pen.defsniky.com'

TIMEZONE = 'Asia/Shanghai'

DEFAULT_LANG = u'zh-CN'

# Feed generation is usually not desired when developing
FEED_ALL_ATOM = "feeds/all.atom.xml"
FEED_MAX_ITEMS = 20
CATEGORY_FEED_ATOM = "feeds/%s.atom.xml"
TRANSLATION_FEED_ATOM = None
USE_FOLDER_AS_CATEGORY = True

# Blogroll
LINKS =  (('You can modify those links in your config file', '#'),)

# Social widget
SOCIAL = (('You can add links in your config file', '#'),)

DEFAULT_PAGINATION = 10

# Uncomment following line if you want document-relative URLs when developing
#RELATIVE_URLS = True

#THEME
THEME = 'themes/theme-by-rainy'
ARTICLE_URL = "posts/{date:%Y}-{date:%m}-{date:%d}-{slug}.html"
ARTICLE_SAVE_AS = "posts/{date:%Y}-{date:%m}-{date:%d}-{slug}.html"
TAG_URL = 'tag/{slug}.html'
TAG_SAVE_AS = 'tag/{slug}.html'

# PLUGINS
PLUGIN_PATH = "plugins"
PLUGINS = ["neighbors", "sitemap", "tagsnet", "render_math"]
SITEMAP = {
	'format': 'xml',
	   'priorities': {
        'articles': 0.7,
        'indexes': 0.5,
        'pages': 0.3
    },
    'changefreqs': {
        'articles': 'monthly',
        'indexes': 'daily',
        'pages': 'monthly'
    }
}

# Publish
PUB = False

# Ordering
REVERSE_CATEGORY_ORDER = True

# Tag cloud
TAG_CLOUD_STEPS = 4
TAG_CLOUD_MAX_ITEMS = 100

# No Authors
AUTHORS_URL = False
AUTHORS_SAVE_AS = False 

#
TEMPLATE_PAGES = {"/Users/rainy/Projects/GitOSChina/defsniky.com/pages/about.html":"about.html"}
